@extends('layouts.scaffold')

@section('main')

<h1>Edit Chuc_nang</h1>
{{ Form::model($chuc_nang, array('method' => 'PATCH', 'route' => array('chuc_nangs.update', $chuc_nang->id))) }}
<ul>
    <li>
        {{ Form::label('ten_chuc_nang', 'Ten_chuc_nang:') }}
        {{ Form::text('ten_chuc_nang') }}
    </li>

    <li>
        {{ Form::label('route', 'Route:') }}
        {{ Form::text('route') }}
    </li>

    <li>
        {{ Form::submit('Update', array('class' => 'btn btn-info')) }}
        {{ link_to_route('chuc_nangs.show', 'Cancel', $chuc_nang->id, array('class' => 'btn')) }}
    </li>
</ul>
{{ Form::close() }}

<br>
                @if ($errors->any())
                    {{ implode('', $errors->all('<div class="error callout callout-danger">:message</div>')) }}
                @endif

@stop